<!--
 * @Author: quit
 * @Date: 2022-01-08 18:24:14
 * @LastEditTime: 2022-01-12 15:49:33
 * @Descripttion: View
-->
<script>
export default {
    name: 'View',
    props: {
        editMode: {
            type: Boolean,
            default: false
        },
        selected: {
            type: Boolean,
            default: false
        },
        detail: {
            type: Object,
            default: () => {}
        }
    },
    data() {
        return {}
    },
    computed: {
        textAlign: function() {
            if (this.detail.style.textAlign === undefined) {
                return 'center'
            } else {
                return this.detail.style.textAlign
            }
        },
        lineHeight: function() {
            if (this.detail.style.lineHeight === undefined) {
                return this.detail.style.position.h
            }
            return this.detail.style.lineHeight
        }
    },
    methods: {
        refreshData(val, sceneName) {},
        onResize() {}
    }
}
</script>
